From: Chun-wei Fan Date: Tue, 28 Aug 2018 09:28:23 +0000 (+0800) Subject: gtk/gtkeventcontrollerscroll.c: Include fallback-c89.c X-Git-Tag: archive/raspbian/3.24.39-1+rpi1~1^2~65^2~32^2~40^2~1 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=6cf729765392c94b02aeb0879a8fb0286934ef4d;p=gtk%2B3.0.git gtk/gtkeventcontrollerscroll.c: Include fallback-c89.c ... instead of just math.h, as it uses the C99 function trunc(). This is so that the code builds on pre-C99 compilers. --- diff --git a/gtk/gtkeventcontrollerscroll.c b/gtk/gtkeventcontrollerscroll.c index 73848cd6e5..314be1b708 100644 --- a/gtk/gtkeventcontrollerscroll.c +++ b/gtk/gtkeventcontrollerscroll.c @@ -60,8 +60,6 @@ **/ #include "config.h" -#include "math.h" - #include "gtkintl.h" #include "gtkwidget.h" #include "gtkeventcontrollerprivate.h" @@ -70,6 +68,8 @@ #include "gtkmarshalers.h" #include "gtkprivate.h" +#include "fallback-c89.c" + #define SCROLL_CAPTURE_THRESHOLD_MS 150 typedef struct